<?php
/**
 * Dirox Framework
 * Copyright (C) 2005 - 2007 Dirox / Synexser
 * 
 * All rights reserved.
 */

class DRX_Controller 
{
	function __construct() 
	{
		$args 				= DRX::load("args");
		$objSmarty = DRX::load('smarty');
		if($args!="") 
		{
			$arr 				= explode("/",$args);
			for($i=0;$i<count($arr)-1;$i++) 
			{
				$this->$arr[$i] = $arr[$i+1];
			}
		}
		
		$objSmarty->assign("IO_MainFunction",new IO_MainFunction());
	}
        
}
?>